package com.ruoyi.project.hissystem.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class RegistrationCost extends BaseEntity {
    private Integer regid;
    private String regname;
    private Double regprice;
    private String status;

    public RegistrationCost() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RegistrationCost that = (RegistrationCost) o;
        return Objects.equals(regid, that.regid) &&
                Objects.equals(regname, that.regname) &&
                Objects.equals(regprice, that.regprice) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(regid, regname, regprice, status);
    }

    @Override
    public String toString() {
        return "RegistrationCost{" +
                "regid=" + regid +
                ", regname='" + regname + '\'' +
                ", regprice=" + regprice +
                ", status='" + status + '\'' +
                '}';
    }

    public Integer getRegid() {
        return regid;
    }

    public void setRegid(Integer regid) {
        this.regid = regid;
    }

    public String getRegname() {
        return regname;
    }

    public void setRegname(String regname) {
        this.regname = regname;
    }

    public Double getRegprice() {
        return regprice;
    }

    public void setRegprice(Double regprice) {
        this.regprice = regprice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public RegistrationCost(Integer regid, String regname, Double regprice, String status) {
        this.regid = regid;
        this.regname = regname;
        this.regprice = regprice;
        this.status = status;
    }
}
